import React from 'react';
import { View, Text, Image, TouchableOpacity, StyleSheet } from 'react-native-web';
import useRem from '../rem/rem';

export default function Missing({ navigation }) {
  const rem = useRem();

  return (
    <View style={styles.container}>
      <View style={styles.header}>
        <TouchableOpacity onPress={() => navigation.goBack()}>
          <Image
            source={require('../image/login/left.png')}
            style={styles.backIcon}
          />
        </TouchableOpacity>
        <Text style={styles.title}>忘记密码</Text>
      </View>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    padding: 20,
  },
  header: {
    display: 'flex',
    flexDirection: 'row',
    alignItems: 'center',
    marginBottom: 20,
  },
  backIcon: {
    width: 20,
    height: 20,
    marginRight: 10, // 给图标右边留一点空间
  },
  title: {
    fontSize: 18,
    fontWeight: 'bold',
  },
});